.mfa-page {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f8fafc;
  color: #333;

  .header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 36px;
    padding: 24px 0;
    position: relative;

    &::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 60px;
      height: 4px;
      background: linear-gradient(90deg, #3b82f6, #4f46e5);
      border-radius: 2px;
    }

    .title {
      font-size: 30px;
      font-weight: 700;
      margin: 16px 0 12px;
      color: #1e293b;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .description {
      font-size: 24px;
      color: #64748b;
      text-align: center;
      max-width: 85%;
      line-height: 1.6;
    }
  }

  .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .bind-section,
  .verify-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .info-card,
  .status-card {
    background: linear-gradient(135deg, #fff, #f8fafc);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05),
                0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(226, 232, 240, 0.8);

    .info-title,
    .status-title {
      font-size: 28px;
      font-weight: 700;
      margin: 20px 0 16px;
      color: #1e293b;
      position: relative;

      &::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
      }
    }

    .info-text,
    .status-text {
      font-size: 24px;
      color: #64748b;
      text-align: center;
      line-height: 1.7;
    }
  }

  .action-btn {
    margin-top: 16px;
    border-radius: 12px;
    height: 70px;
    font-size: 24px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;

    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
      transition: all 0.5s ease;
    }

    &:active {
      transform: translateY(2px);
      box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);

      &::before {
        left: 100%;
      }
    }
  }

  .unbind-btn {
    margin-top: 20px;
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    box-shadow: none;

    &::before {
      display: none;
    }

    &:active {
      background-color: rgba(239, 68, 68, 0.1);
    }
  }

  .code-input {
    width: 100%;
    height: 60px;
    font-size: 32px;
    text-align: center;
    letter-spacing: 12px;
    font-weight: 700;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 0 16px;
    transition: all 0.3s ease;
    color: #1e293b;

    &:focus {
      border-color: #6366f1;
      box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
      outline: none;
    }
  }

  .qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;

    .qr-code {
      width: 240px;
      height: 240px;
      margin-bottom: 20px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      border-radius: 16px;
      padding: 8px;
      background-color: #fff;
      border: 1px solid #e2e8f0;
    }

    .secret-key {
      font-size: 24px;
      background-color: #f1f5f9;
      padding: 12px 20px;
      border-radius: 8px;
      margin-bottom: 16px;
      font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
      user-select: all;
      word-break: break-all;
      width: 90%;
      text-align: center;
      border: 1px dashed #cbd5e1;
      color: #334155;
    }

    .qr-tip {
      font-size: 26px;
      color: #64748b;
      text-align: center;
      line-height: 1.6;
      margin-top: 12px;
      max-width: 90%;
    }
  }

  .verify-container {
    margin-top: 24px;

    .verify-label {
      display: block;
      font-size: 24px;
      color: #334155;
      margin-bottom: 12px;
      text-align: center;
      font-weight: 500;
    }

    .verify-input {
      width: 100%;
      height: 54px;
      font-size: 32px;
      text-align: center;
      letter-spacing: 12px;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
      background-color: #fff;
      transition: all 0.3s ease;
      color: #1e293b;
      font-weight: 700;

      &:focus {
        border-color: #6366f1;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05),
                    0 0 0 3px rgba(99, 102, 241, 0.25);
        outline: none;
      }
    }
  }

  .verify-group {
    margin-top: 12px;
    margin-bottom: 12px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

    .taroify-cell-group__title {
      margin-bottom: 12px;
      font-size: 24px;
      color: #334155;
      font-weight: 600;
    }

    .taroify-cell {
      padding: 16px 12px;
      background-color: #fff;
      border-radius: 12px;
    }
  }

  // 对话框按钮样式
  .cancel-btn, .confirm-btn {
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #000000 !important;
  }
  .confirm-bg {
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    color: #ffffff !important;

  }

  // 对话框样式优化
  :global {
    // 全局按钮样式修复
    button, .taroify-button {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      line-height: 1 !important;
    }

    .taroify-dialog__header {
      font-weight: 700;
      font-size: 20px;
      color: #1e293b;
      padding: 24px 24px 16px;
    }

    .taroify-dialog__content {
      padding: 12px 24px 24px;
    }

    .taroify-dialog__actions {
      border-top: 1px solid #e2e8f0;
      padding: 12px;

      .taroify-button {
        font-size: 16px;
        font-weight: 600;
        height: 44px;
        margin: 0 8px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;

        &--primary {
          background: linear-gradient(90deg, #4f46e5, #6366f1);
          border: none;
        }
      }
    }
  }
}
